<?php
//Load class
include("lib/tpb.php");
$tpb = new tpb();
?>
<!-- Displays a list of available categories -->
<table>
    <tr>
        <td>Category</td>
        <td><?php $tpb->getCategoriesSelectList(); ?></td>
    </tr>
</table>

<?php
//Category is selected    
if(isset($_GET["cat"])) {
    //Get results table
    $tpb->getSearchResultsTable($_GET["cat"]);
}
?>